/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package teste;

import teste.Mediator.Mediator;

/**
 *
 * @author Caio
 */
public abstract class Colleague {
    protected Mediator mediator;
    
    Double forca;
    Double def;
    Double vida;

    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }
    
    
   public void enviarSoco(){
      mediator.enviar(this.getForca(),this);
   }
   
   public void enviarChute(){
       mediator.enviar((this.getForca()*1.5),this);
   }
   public void soltarPoder(){
       mediator.enviar((this.getForca())*2.0,this);
   }
   
   public abstract void defender(Double forca);
   public abstract Double getForca();
   public abstract Double getDef();
   public abstract Double getVida();
}
